package com.gzhryc.weixin.api.resource.msg.req;

/**
 * 群发送图文请求
 * @author 张浩
 * @version 2016-12-20
 */
public class SendNewsRequest {

	protected Filter filter;
	protected Mpnews mpnews; 
	protected String msgtype;
	
	public SendNewsRequest(){
		this.filter = new Filter();
		this.mpnews = new Mpnews();
	}
	
	public Filter getFilter() {
		return filter;
	}

	public void setFilter(Filter filter) {
		this.filter = filter;
	}

	public Mpnews getMpnews() {
		return mpnews;
	}

	public void setMpnews(Mpnews mpnews) {
		this.mpnews = mpnews;
	}

	public String getMsgtype() {
		return msgtype;
	}

	public void setMsgtype(String msgtype) {
		this.msgtype = msgtype;
	}

	/*
	 * 用于设定是否向全部用户发送，值为true或false，选择true该消息群发给所有用户，
	 * 选择false可根据group_id发送给指定群组的用户
	 */
	public static class Filter {
		
		protected Boolean is_to_all;
		protected String group_id;
		
		public Boolean getIs_to_all() {
			return is_to_all;
		}
		public void setIs_to_all(Boolean is_to_all) {
			this.is_to_all = is_to_all;
		}
		public String getGroup_id() {
			return group_id;
		}
		public void setGroup_id(String group_id) {
			this.group_id = group_id;
		}
	}
	
	public static class Mpnews {
		
		protected String media_id;

		public String getMedia_id() {
			return media_id;
		}

		public void setMedia_id(String media_id) {
			this.media_id = media_id;
		}
	}
}
